// 基础列配置
export const BASE_COLUMNS = [
    { prop: 'time', label: '时间', width: 'auto', group: '基础信息', required: true },
    { prop: 'value', label: '读数', width: 'auto', group: '基础信息' },
    { prop: 'usage', label: '用量', width: 'auto', group: '基础信息' }
];

// 电表专属列配置
export const ELECTRIC_COLUMNS = [
    // 电压相关
    { prop: 'voltage_a', label: 'A相电压', width: 'auto', group: '电压' },
    { prop: 'voltage_b', label: 'B相电压', width: 'auto', group: '电压' },
    { prop: 'voltage_c', label: 'C相电压', width: 'auto', group: '电压' },
    { prop: 'voltage_ab', label: 'AB线电压', width: 'auto', group: '电压' },
    { prop: 'voltage_bc', label: 'BC线电压', width: 'auto', group: '电压' },
    { prop: 'voltage_ac', label: 'AC线电压', width: 'auto', group: '电压' },

    // 电流相关  
    { prop: 'current_a', label: 'A相电流', width: 'auto', group: '电流' },
    { prop: 'current_b', label: 'B相电流', width: 'auto', group: '电流' },
    { prop: 'current_c', label: 'C相电流', width: 'auto', group: '电流' },
    { prop: 'leakage', label: '漏电流', width: 'auto', group: '电流' },

    // 功率相关
    { prop: 'active_power_t', label: '总有功功率', width: 'auto', group: '功率' },
    { prop: 'deactivate_power_t', label: '总无功功率', width: 'auto', group: '功率' },
    { prop: 'sight_power_t', label: '总视在功率', width: 'auto', group: '功率' },

    // 电能相关
    { prop: 'active_total_power_t', label: '总有功电能', width: 'auto', group: '电能' },
    { prop: 'deactive_total_power_t', label: '总无功电能', width: 'auto', group: '电能' },
    { prop: 'sight_total_power_t', label: '总视在电能', width: 'auto', group: '电能' },

    // 其他
    { prop: 'power_factor', label: '功率因数', width: 'auto', group: '其他' },
    { prop: 'frequency', label: '频率', width: 'auto', group: '其他' }
];

// 默认显示的列
export const DEFAULT_VISIBLE_COLUMNS = ['time', 'value', 'usage'];

// 电表默认显示的额外列
export const DEFAULT_ELECTRIC_COLUMNS = [
    'voltage_a', 'voltage_b', 'voltage_c',
    'current_a', 'current_b', 'current_c',
    'active_power_t', 'deactivate_power_t'
];